import Vue from 'vue'
import Router from 'vue-router'
import GoodsList from './../views/GoodsList'
import Title from './../views/Title'
import Images from './../views/Image'
import Cart from './../views/Cart'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'GoodsList',
      components: {
        default: GoodsList,
        title: Title,
        image: Images
      }

    },{
      path: '/cart/:cartId',
      name: 'cart',
      component: Cart
    }

  ]
})
